package com.naiterui.ehp.bs.im;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import com.naiterui.common.redis.config.EnableRedisAutoConfiguration;
import com.naiterui.common.repository.config.EnableMultiMongoTemplateConfiguration;

@EnableWebMvc
@EnableFeignClients
@EnableAsync
@EnableRedisAutoConfiguration
@EnableMultiMongoTemplateConfiguration
@SpringBootApplication(exclude = { MongoAutoConfiguration.class, MongoDataAutoConfiguration.class, HibernateJpaAutoConfiguration.class })
@ComponentScan("com.naiterui")
public class ImServer {

    /**
     * main
     */
    public static void main(String[] args) {
        SpringApplication.run(ImServer.class, args);
    }

}
